package ink.ykb.demo.permission.entity;
import java.io.Serializable;
import java.util.Date;

import org.beetl.sql.core.annotatoin.Table;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/* 
* 用户经销商层级关联表
* gen by beetlsql 2019-09-23
*/
@Table(name="test.user_dealer_department")
public class UserDealerDepartment  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	// alias
	public static final String ALIAS_id = "id";
	public static final String ALIAS_dealer_department_id = "dealer_department_id";
	public static final String ALIAS_user_id = "user_id";
	public static final String ALIAS_create_time = "create_time";
	public static final String ALIAS_scope = "scope";
	
	/*
	主键
	*/
	@JsonSerialize(using=ToStringSerializer.class)
	private Long id ;
	/*
	经销商层级主键
	*/
	private Long dealerDepartmentId ;
	/*
	用户主键
	*/
	private Long userId ;
	/*
	创建时间
	*/
	private Date createTime ;
	/*
	*查看范围，1：查看自己，2：查看同部门其他人，3：查询下级部门所有人，4：查询下级部门和同部门其他人
	 */
	private Integer scope ;
	
	public UserDealerDepartment() {
	}
	
	/**
	* 主键
	*@return 
	*/
	public Long getId(){
		return  id;
	}
	/**
	* 主键
	*@param  id
	*/
	public void setId(Long id ){
		this.id = id;
	}
	
	/**
	* 经销商层级主键
	*@return 
	*/
	public Long getDealerDepartmentId(){
		return  dealerDepartmentId;
	}
	/**
	* 经销商层级主键
	*@param  dealerDepartmentId
	*/
	public void setDealerDepartmentId(Long dealerDepartmentId ){
		this.dealerDepartmentId = dealerDepartmentId;
	}
	
	/**
	* 用户主键
	*@return 
	*/
	public Long getUserId(){
		return  userId;
	}
	/**
	* 用户主键
	*@param  userId
	*/
	public void setUserId(Long userId ){
		this.userId = userId;
	}
	
	/**
	* 创建时间
	*@return 
	*/
	public Date getCreateTime(){
		return  createTime;
	}
	/**
	* 创建时间
	*@param  createTime
	*/
	public void setCreateTime(Date createTime ){
		this.createTime = createTime;
	}

	/**
	 * 查看范围，1：查看自己，2：查看同部门其他人，3：查询下级部门所有人，4：查询下级部门和同部门其他人
	 * @return
	 */
	public Integer getScope() {
		return scope;
	}

	/**
	 * 查看范围，1：查看自己，2：查看同部门其他人，3：查询下级部门所有人，4：查询下级部门和同部门其他人
	 * @param scope
	 */
	public void setScope(Integer scope) {
		this.scope = scope;
	}
	

}
